message("math path: ${CMAKE_CURRENT_SOURCE_DIR}")

# 查找当前目录下的所有源文件, 并将名称保存到 DIR_LIB_SRCS 变量
aux_source_directory(. DIR_LIB_SRCS)

# 生成链接库
add_library(MathFunctions ${DIR_LIB_SRCS})


# 指定 MathFunctions 库的安装路径
install (TARGETS 
        MathFunctions 
        DESTINATION 
        lib/my_math/)
install (FILES 
        math_function.h 
        DESTINATION 
        include/my_math/)